added method labels
added return statement, main label, basic class allocate calculation