step by step complete guidance using n tier architecture