added Rectangle entity and added more comments