First code for POP (Error Reporting can be bettered)