refactoring, cast 5. cviceni