First draft of loggin class completed