fixed depth buffering
created input class